//
// Created by 陈 on 2023/12/2.
//
#include <iostream>
#include <manager.hpp>
#include <utility>
using namespace std;
using namespace name_Worker;


// 构造函数
Manager::Manager(const int id, const int dId, string name)
{
	this->m_Id     = id;
	this->m_DeptId = dId;
	this->m_Name   = std::move(name);
}

// 显示个人信息
void Manager::showInfo()
{
	cout << "职工编号：" << this->m_Id
		 << "\t职工姓名："<< this->m_Name
		 << "\t岗位：" << this->getDeptName()
		 << "\t岗位职责：完成老板交给的任务,并下发任务给员工。" << endl;
}
// 获取岗位名称
string Manager::getDeptName()
{
	return "经理";
}
// 析构函数
Manager::~Manager() = default;